<?php 

if (!eregi("modules.php", $_SERVER['PHP_SELF'])) { 
    die ("You can't access this file directly..."); 
} 

require_once("mainfile.php"); 
$module_name = basename(dirname(__FILE__)); 
define('INDEX_FILE', true); 
include("header.php"); 
include("footer.php"); 
?>